function [trainSet testSet] = splitSet(set, ratio=0.5)
	order = randperm(size(set,1));
		divPt=floor(size(order,2)*ratio);
	trainSet=set(order(1:divPt),:);
	testSet=set(order(divPt+1:end),:);
end;
